package com.example.zxx.springboot3.controller;

import com.example.zxx.springboot3.domain.UserDTO;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TestController:
 *
 * @author zhangxiaoxiang
 * @date 2022/02/13
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/test")
@Slf4j
public class TestController {
    @PostMapping("/test")
    public Object getList(@RequestBody UserDTO dto){
        log.info("请求参数:{}",dto);
        return dto;
    }
}
